package com.hjm.project.batchSettle.batchSettle.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.hjm.project.batchSettle.batchSettle.mapper.BatchSettleMapper;
import com.hjm.project.batchSettle.batchSettle.domain.BatchSettle;
import com.hjm.project.batchSettle.batchSettle.service.IBatchSettleService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 兜底结算记录Service业务层处理
 * 
 * @author maker-platform
 * @date 2022-03-10
 */
@Service
public class BatchSettleServiceImpl implements IBatchSettleService {
    @Resource
    private BatchSettleMapper batchSettleMapper;

    /**
     * 查询兜底结算记录
     * 
     * @param settDate 兜底结算记录ID
     * @return 兜底结算记录
     */
    @Override
    public BatchSettle selectBatchSettleById(String settDate) {
        return batchSettleMapper.selectBatchSettleById(settDate);
    }

    /**
     * 查询兜底结算记录列表
     * 
     * @param batchSettle 兜底结算记录
     * @return 兜底结算记录
     */
    @Override
    public List<BatchSettle> selectBatchSettleList(BatchSettle batchSettle) {
        return batchSettleMapper.selectBatchSettleList(batchSettle);
    }

    /**
     * 查询兜底结算记录列表
     *
     * @param batchSettle 兜底结算记录
     * @return 兜底结算记录 一个结果
     */
    @Override
    public BatchSettle selectBatchSettleOne(BatchSettle batchSettle) {
        return batchSettleMapper.selectBatchSettleOne(batchSettle);
    }

    /**
     * 新增兜底结算记录
     * 
     * @param batchSettle 兜底结算记录
     * @return 结果
     */
    @Override
    public int insertBatchSettle(BatchSettle batchSettle) {
        return batchSettleMapper.insertBatchSettle(batchSettle);
    }

    /**
     * 修改兜底结算记录
     * 
     * @param batchSettle 兜底结算记录
     * @return 结果
     */
    @Override
    public int updateBatchSettle(BatchSettle batchSettle) {
        return batchSettleMapper.updateBatchSettle(batchSettle);
    }

    /**
     * 删除兜底结算记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBatchSettleByIds(String ids) {
        return batchSettleMapper.deleteBatchSettleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除兜底结算记录信息
     * 
     * @param settDate 兜底结算记录ID
     * @return 结果
     */
    @Override
    public int deleteBatchSettleById(String settDate) {
        return batchSettleMapper.deleteBatchSettleById(settDate);
    }
}
